var starttime = []
var geoDim = []// 地理纬度子集列表
var HB_province = '河北省'
var data_JSON = {}

var aggregate_demand_num_sum = ''// 总需求数量
var aggregate_completed_num_sum = ''// 总完成数量
var aggregate_demand_num = []// 总需求数量
var aggregate_completed_num = []// 总完成数量
var aggregate_demand_succ_rate = []// 总需求项目立项达成率
var aggregate_demand_succ_rate_bv = []// 总需求项目立项达成率_基准值
var aggregate_demand_succ_rate_cv = []// 总需求项目立项达成率_挑战值
var aggregate_demand_succ_rate_mv = []// 总需求项目立项达成率_均值

var expansion_succ_rate_sum = ''
var expansion_demand_num_sum = ''// 扩容需求数量
var expansion_completed_num_sum = ''// 扩容完成数量
var expansion_demand_num = []// 扩容需求数量
var expansion_completed_num = []// 扩容完成数量
var expansion_succ_rate = []// 扩容项目立项达成率
var expansion_succ_rate_bv = []// 扩容项目立项达成率_基准值
var expansion_succ_rate_cv = []// 扩容项目立项达成率_挑战值
var expansion_succ_rate_mv = []// 扩容项目立项达成率_均值

var coverage_demand_num_sum = ''// 覆盖项目立项达成率_挑战值
var coverage_completed_num_sum = ''// 覆盖项目立项达成率_基准值
var coverage_projects_succ_rate_sum = ''// 覆盖项目立项达成率
var coverage_demand_num = []
var coverage_completed_num = []
var coverage_projects_succ_rate = []// 覆盖项目立项达成率
var coverage_projects_succ_rate_bv = []// 覆盖项目立项达成率_基准值
var coverage_projects_succ_rate_cv = []// 覆盖项目立项达成率_挑战值
var coverage_projects_succ_rate_mv = []// 覆盖项目立项达成率_均值

var demand_entry_num_sum = ''// 需求录入
var demand_entry_completed_num_sum = ''// 覆盖项目立项达成率_基准值
var demand_entry_succ_rate_sum = ''// 覆盖项目立项达成率
var demand_entry_num = []
var demand_entry_completed_num = []
var demand_entry_succ_rate = []// 覆盖项目立项达成率
var demand_entry_succ_rate_bv = []// 覆盖项目立项达成率_基准值
var demand_entry_succ_rate_cv = []// 覆盖项目立项达成率_挑战值
var demand_entry_succ_rate_mv = []// 覆盖项目立项达成率_均值

var indoor_repair_demand_num_sum = ''// 室分整治
var indoor_repair_completed_num_sum = ''// 覆盖项目立项达成率_基准值
var indoor_repair_succ_rate_sum = ''// 覆盖项目立项达成率
var indoor_repair_demand_num = []
var indoor_repair_completed_num = []
var indoor_repair_succ_rate = []// 覆盖项目立项达成率
var indoor_repair_succ_rate_bv = []// 覆盖项目立项达成率_基准值
var indoor_repair_succ_rate_cv = []// 覆盖项目立项达成率_挑战值
var indoor_repair_succ_rate_mv = []// 覆盖项目立项达成率_均值

var rep_rem_demand_num_gsm_sum = ''// 2G替换
var rep_rem_completed_num_gsm_sum = ''// 覆盖项目立项达成率_基准值
var rep_rem_succ_rate_gsm_sum = ''// 覆盖项目立项达成率
var rep_rem_demand_num_gsm = []
var rep_rem_completed_num_gsm = []
var rep_rem_succ_rate_gsm = []// 覆盖项目立项达成率
var rep_rem_succ_rate_gsm_bv = []// 覆盖项目立项达成率_基准值
var rep_rem_succ_rate_gsm_cv = []// 覆盖项目立项达成率_挑战值
var rep_rem_succ_rate_gsm_mv = []// 覆盖项目立项达成率_均值


N.indexHome = N.Class.extend({
    resize: function () {
        // var topheight = $('.container-fluid').height() - $('.content-header').height() - 5;
        var topheight = $('.container-fluid').height() - 20
        var bottomheight = topheight * (1 / 2)
        var boxtop = bottomheight - 120
        var maptop = topheight * (2 / 3) - 60
        var mapbot = topheight * (1 / 3) - 60
        $('.control-size-box').height(boxtop)
        $('.control-size-box-map').height(maptop)
        $('.control-size-box-mapbot').height(mapbot)

        var headheight = $('#table1_wrapper .dataTables_scrollHeadInner').height()
        if (headheight) {
            this.tablbeHeight = boxtop - headheight - 5
            $('#table1_wrapper .dataTables_scrollBody').height(this.tablbeHeight)
        }
        headheight = $('#table2_wrapper .dataTables_scrollHeadInner').height()
        if (headheight) {
            this.tablbeHeight = boxtop - headheight - 5
            $('#table2_wrapper .dataTables_scrollBody').height(this.tablbeHeight)
        }
    },
    pageLoad: function (geography, shiduan, geo_dim, city, area) {
        loading.show()
        if (geography) {
            this.geographyChart(shiduan, geo_dim, city, area)
        } else {
            this.timeChart(shiduan, geo_dim, city, area)
        }
        this.chartTop(shiduan, geo_dim, city, area)
    },
    chartTop: function (shiduan, geo_dim, city, area) {
        loading.show()
        var param
        if (geo_dim === '省') {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                area: area
            }
        } else {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                city: city,
                area: area
            }
        }
        service.get(getApiPath() + 'planning/geographyChart',
            {
                params: param
            }
        ).then(function (res) {
            res = res.data
            try {
                setBaseVal(res)
            } catch (e) {
                console.log(e)
            }
            loading.hide()
        }).catch(function (e) {
            return false
        })
    },
    geographyChart: function (shiduan, geo_dim, city, area) {
        var param
        if (geo_dim === '省') {
            param = {
                geo_dim: '地市',
                time_dim: shiduan,
                area: area
            }
        } else if (geo_dim === '地市' || geo_dim === '区县') {
            param = {
                geo_dim: '区县',
                time_dim: shiduan,
                city: city,
                area: area != '全量小区' ? area : ''
            }
            /* param = {
                geo_dim: geo_dim,//isDbClickMap ? geo_dim : '区县',
                time_dim: shiduan,
                city: city,
                area: area//area != '全量小区'? area : ''
            } */
        }
        getWideData(param, 'planning/geographyChart')
    },
    timeChart: function (shiduan, geo_dim, city, area) {
        var param
        if (geo_dim === '省') {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                area: area,
                num: shiduan == 'M' ? 6 : 7
            }
        } else {
            param = {
                geo_dim: geo_dim,
                time_dim: shiduan,
                city: city,
                area: area,
                num: shiduan == 'M' ? 6 : 7
            }
        }
        getWideData(param, 'planning/timeChart')
    }
})
page = new N.indexHome()
$(function () {
    loading.show()
    $(document).on('map:click', function (event, geography, shiduan, geo_dim, map_city, map_area) {
        page.pageLoad(geography, shiduan, geo_dim, map_city, map_area)
    })
})

function getWideData (param, reqUrl) {
    console.log('时间维度:' + param.time_dim + '；地理纬度:' + param.geo_dim + '；省:' + HB_province + '；市:' + param.city + '；区县:' + param.area + '；请求地址:' + reqUrl)
    loading.show()
    service.get(getApiPath() + reqUrl,
        {
            params: param
        }
    ).then(function (res) {
        cleanRes()
        res = res.data
        if (res.length >= 1) {
            for (var i = res.length - 1; i > -1; i--) {
                setVal(res[i])
            }
        }
        drawPage()
    }).catch(function (e) {
        return false
    })
}

function setBaseVal (res) {
    // 总需求
    $('#aggregate_demand_num_sum').html(toThousands(res[0].aggregate_demand_num))// 总需求数量
    $('#aggregate_completed_num_sum').html(toThousands(res[0].aggregate_completed_num))// 总完成数量
    $('#aggregate_demand_succ_rate_sum').html(toThousands(res[0].aggregate_demand_succ_rate))// 总需求项目立项达成率
    // 扩容
    $('#expansion_demand_num_sum').html(toThousands(res[0].expansion_demand_num))// 高干扰小区环比
    $('#expansion_completed_num_sum').html(toThousands(res[0].expansion_completed_num))// 小区数
    $('#expansion_succ_rate_sum').html(res[0].expansion_succ_rate + '%')// 基站数
    // 覆盖
    $('#coverage_demand_num_sum').html(toThousands(res[0].coverage_demand_num))// 总需求数量
    $('#coverage_completed_num_sum').html(toThousands(res[0].coverage_completed_num))// 总完成数量
    $('#coverage_projects_succ_rate_sum').html(res[0].coverage_projects_succ_rate + '%')// 总需求项目立项达成率
    // 需求录入
    $('#demand_entry_num_sum').html(toThousands(res[0].demand_entry_num))// 总需求数量
    $('#demand_entry_completed_num_sum').html(toThousands(res[0].demand_entry_completed_num))// 总完成数量
    $('#demand_entry_succ_rate_sum').html(res[0].demand_entry_succ_rate)// 总需求项目立项达成率
    // 室分整治
    $('#indoor_repair_demand_num_sum').html(toThousands(res[0].indoor_repair_demand_num))// 总需求数量
    $('#indoor_repair_completed_num_sum').html(toThousands(res[0].indoor_repair_completed_num))// 总完成数量
    $('#indoor_repair_succ_rate_sum').html(res[0].indoor_repair_succ_rate + '%')// 总需求项目立项达成率
    // 2G替换
    $('#rep_rem_demand_num_gsm_sum').html(toThousands(res[0].rep_rem_demand_num_gsm))// 总需求数量
    $('#rep_rem_completed_num_gsm_sum').html(toThousands(res[0].rep_rem_completed_num_gsm))// 总完成数量
    $('#rep_rem_succ_rate_gsm_sum').html(res[0].rep_rem_succ_rate_gsm + '%')// 总需求项目立项达成率

    $('#planning_notice').html(res[0].planning_notice)// 集中规划公告
}

function cleanRes () {
    starttime = []
    geoDim = []// 地理纬度子集列表

    aggregate_demand_num = []
    aggregate_completed_num = []
    aggregate_demand_succ_rate = []// 总需求项目立项达成率
    aggregate_demand_succ_rate_bv = []// 总需求项目立项达成率_基准值
    aggregate_demand_succ_rate_cv = []// 总需求项目立项达成率_挑战值
    aggregate_demand_succ_rate_mv = []// 总需求项目立项达成率_均值
    aggregate_demand_num_sum = ''// 总需求数量
    aggregate_completed_num_sum = ''// 总完成数量

    expansion_succ_rate_sum = ''
    expansion_demand_num_sum = ''// 扩容需求数量
    expansion_completed_num_sum = ''// 扩容完成数量
    expansion_demand_num = []// 扩容需求数量
    expansion_completed_num = []// 扩容完成数量
    expansion_succ_rate = []// 扩容项目立项达成率
    expansion_succ_rate_bv = []// 扩容项目立项达成率_基准值
    expansion_succ_rate_cv = []// 扩容项目立项达成率_挑战值
    expansion_succ_rate_mv = []// 扩容项目立项达成率_均值

    coverage_projects_succ_rate = []// 覆盖项目立项达成率
    coverage_projects_succ_rate_bv = []// 覆盖项目立项达成率_基准值
    coverage_projects_succ_rate_cv = []// 覆盖项目立项达成率_挑战值
    coverage_projects_succ_rate_mv = []// 覆盖项目立项达成率_均值
    coverage_demand_num_sum = ''// 覆盖项目立项达成率_挑战值
    coverage_completed_num_sum = ''// 覆盖项目立项达成率_基准值
    coverage_projects_succ_rate_sum = ''// 覆盖项目立项达成率
    coverage_demand_num = []
    coverage_completed_num = []

    demand_entry_num_sum = ''// 需求录入
    demand_entry_completed_num_sum = ''// 覆盖项目立项达成率_基准值
    demand_entry_succ_rate_sum = ''// 覆盖项目立项达成率
    demand_entry_num = []
    demand_entry_completed_num = []
    demand_entry_succ_rate = []// 覆盖项目立项达成率
    demand_entry_succ_rate_bv = []// 覆盖项目立项达成率_基准值
    demand_entry_succ_rate_cv = []// 覆盖项目立项达成率_挑战值
    demand_entry_succ_rate_mv = []// 覆盖项目立项达成率_均值

    indoor_repair_demand_num_sum = ''// 室分整治
    indoor_repair_completed_num_sum = ''// 覆盖项目立项达成率_基准值
    indoor_repair_succ_rate_sum = ''// 覆盖项目立项达成率
    indoor_repair_demand_num = []
    indoor_repair_completed_num = []
    indoor_repair_succ_rate = []// 覆盖项目立项达成率
    indoor_repair_succ_rate_bv = []// 覆盖项目立项达成率_基准值
    indoor_repair_succ_rate_cv = []// 覆盖项目立项达成率_挑战值
    indoor_repair_succ_rate_mv = []// 覆盖项目立项达成率_均值

    rep_rem_demand_num_gsm_sum = ''// 2G替换
    rep_rem_completed_num_gsm_sum = ''// 覆盖项目立项达成率_基准值
    rep_rem_succ_rate_gsm_sum = ''// 覆盖项目立项达成率
    rep_rem_demand_num_gsm = []
    rep_rem_completed_num_gsm = []
    rep_rem_succ_rate_gsm = []// 覆盖项目立项达成率
    rep_rem_succ_rate_gsm_bv = []// 覆盖项目立项达成率_基准值
    rep_rem_succ_rate_gsm_cv = []// 覆盖项目立项达成率_挑战值
    rep_rem_succ_rate_gsm_mv = []// 覆盖项目立项达成率_均值
}

function setVal (item) {
    starttime.push(item.starttime.substr(5, 5))
    item.area === '全量小区' ? geoDim.push(item.city) : geoDim.push(item.area)

    aggregate_demand_num.push(item.aggregate_demand_num)
    aggregate_completed_num.push(item.aggregate_completed_num)
    aggregate_demand_succ_rate.push(item.aggregate_demand_succ_rate)
    aggregate_demand_succ_rate_bv.push(item.aggregate_demand_succ_rate_bv)
    aggregate_demand_succ_rate_cv.push(item.aggregate_demand_succ_rate_cv)
    aggregate_demand_succ_rate_mv.push(item.aggregate_demand_succ_rate_mv)

    expansion_demand_num.push(item.expansion_demand_num)
    expansion_completed_num.push(item.expansion_completed_num)
    expansion_succ_rate.push(item.expansion_succ_rate)
    expansion_succ_rate_bv.push(item.expansion_succ_rate_bv)
    expansion_succ_rate_cv.push(item.expansion_succ_rate_cv)
    expansion_succ_rate_mv.push(item.expansion_succ_rate_mv)

    coverage_demand_num.push(item.coverage_demand_num)
    coverage_completed_num.push(item.coverage_completed_num)
    coverage_projects_succ_rate.push(item.coverage_projects_succ_rate)
    coverage_projects_succ_rate_bv.push(item.coverage_projects_succ_rate_bv)
    coverage_projects_succ_rate_cv.push(item.coverage_projects_succ_rate_cv)
    coverage_projects_succ_rate_mv.push(item.coverage_projects_succ_rate_mv)

    demand_entry_num.push(item.demand_entry_num)
    demand_entry_completed_num.push(item.demand_entry_completed_num)
    demand_entry_succ_rate.push(item.demand_entry_succ_rate)
    demand_entry_succ_rate_bv.push(item.demand_entry_succ_rate_bv)
    demand_entry_succ_rate_cv.push(item.demand_entry_succ_rate_cv)
    demand_entry_succ_rate_mv.push(item.demand_entry_succ_rate_mv)

    indoor_repair_demand_num.push(item.indoor_repair_demand_num)
    indoor_repair_completed_num.push(item.indoor_repair_completed_num)
    indoor_repair_succ_rate.push(item.indoor_repair_succ_rate)
    indoor_repair_succ_rate_bv.push(item.indoor_repair_succ_rate_bv)
    indoor_repair_succ_rate_cv.push(item.indoor_repair_succ_rate_cv)
    indoor_repair_succ_rate_mv.push(item.indoor_repair_succ_rate_mv)

    rep_rem_demand_num_gsm.push(item.rep_rem_demand_num_gsm)
    rep_rem_completed_num_gsm.push(item.rep_rem_completed_num_gsm)
    rep_rem_succ_rate_gsm.push(item.rep_rem_succ_rate_gsm)
    rep_rem_succ_rate_gsm_bv.push(item.rep_rem_succ_rate_gsm_bv)
    rep_rem_succ_rate_gsm_cv.push(item.rep_rem_succ_rate_gsm_cv)
    rep_rem_succ_rate_gsm_mv.push(item.rep_rem_succ_rate_gsm_mv)
}

function drawPage () {
    // 总需求达成率
    drawColumnCol({
        id: 'line1',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '总需求数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.blue,
                data: aggregate_demand_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '总完成数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.green,
                data: aggregate_completed_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '总项目达成率(%)',
                type: 'line',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.orange,
                data: aggregate_demand_succ_rate,
                yAxis: 1,
                axisLabelY: '%'
            }, {
                name: '挑战度',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.red,
                data: aggregate_demand_succ_rate_cv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }, {
                name: '基准值',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.darkGreen,
                data: aggregate_demand_succ_rate_bv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }
            /*, {
                name:'全省平均',
                type:'line',
                marker:{
                    enabled: true, /!*数据点是否显示*!/
                    radius: 4,  /!*数据点大小px*!/
                },
                color: N.Util.Theme_colors.note,
                data: aggregate_demand_succ_rate_mv,
                yAxis: 1,
                axisLabelY: '%'
            } */
        ],
        marginTop: 20,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        itemDistance: 0,
        itemMarginTop: -16,
        itemMarginBottom: -1

    })
    // 扩容项目立项达成率
    data_JSON = {
        id: 'line2',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '扩容需求数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.blue,
                data: expansion_demand_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '扩容完成数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.green,
                data: expansion_completed_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '扩容达成率(%)',
                type: 'line',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.orange,
                data: expansion_succ_rate,
                yAxis: 1,
                axisLabelY: '%'
            }, {
                name: '挑战度',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.red,
                data: expansion_succ_rate_cv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }, {
                name: '基准值',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.darkGreen,
                data: expansion_succ_rate_bv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }
        ],
        marginTop: 30,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        itemDistance: 0,
        itemMarginTop: -16,
        itemMarginBottom: -1

    }
    drawColumnCol(data_JSON)
    // 覆盖达成率
    drawColumnCol({
        id: 'line3',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '覆盖需求数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.blue,
                data: coverage_demand_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '覆盖完成数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.green,
                data: coverage_completed_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '覆盖达成率(%)',
                type: 'line',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.orange,
                data: coverage_projects_succ_rate,
                yAxis: 1,
                axisLabelY: '%'
            }, {
                name: '挑战度',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.red,
                data: aggregate_demand_succ_rate_cv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }, {
                name: '基准值',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.darkGreen,
                data: aggregate_demand_succ_rate_bv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }
        ],
        marginTop: 30,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        itemDistance: 0,
        itemMarginTop: -16,
        itemMarginBottom: -1
    })

    // 需求录入达成率
    drawColumnCol({
        id: 'line5',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '录入数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.blue,
                data: demand_entry_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '录入完成数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.green,
                data: demand_entry_completed_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '录入达成率(%)',
                type: 'line',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.orange,
                data: demand_entry_succ_rate,
                yAxis: 1,
                axisLabelY: '%'
            }, {
                name: '挑战度',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.red,
                data: aggregate_demand_succ_rate_cv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }, {
                name: '基准值',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.darkGreen,
                data: aggregate_demand_succ_rate_bv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }
        ],
        marginTop: 30,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        itemDistance: 0,
        itemMarginTop: -16,
        itemMarginBottom: -1

    })
    // 室分整治
    data_JSON = {
        id: 'line6',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '整治数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.blue,
                data: indoor_repair_demand_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '整治完成数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.green,
                data: indoor_repair_completed_num,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '整治达成率(%)',
                type: 'line',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.orange,
                data: indoor_repair_succ_rate,
                yAxis: 1,
                axisLabelY: '%'
            }, {
                name: '挑战度',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.red,
                data: expansion_succ_rate_cv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }, {
                name: '基准值',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.darkGreen,
                data: expansion_succ_rate_bv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }
        ],
        marginTop: 30,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        itemDistance: 0,
        itemMarginTop: -16,
        itemMarginBottom: -1

    }
    drawColumnCol(data_JSON)
    // 2G替换
    drawColumnCol({
        id: 'line7',
        title: null,
        cate: $('#showFont').attr('geography') ? geoDim : starttime,
        data: [
            {
                name: '替换数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.blue,
                data: rep_rem_demand_num_gsm,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '替换完成数量',
                type: 'column',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.green,
                data: rep_rem_completed_num_gsm,
                yAxis: 0,
                axisLabelY: '%'
            },
            {
                name: '替换达成率(%)',
                type: 'line',
                maxPointWidth: 10,
                color: N.Util.Theme_colors.orange,
                data: rep_rem_succ_rate_gsm,
                yAxis: 1,
                axisLabelY: '%'
            }, {
                name: '挑战度',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.red,
                data: aggregate_demand_succ_rate_cv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }, {
                name: '基准值',
                type: 'line',
                marker: {
                    enabled: false, /* 数据点是否显示 */
                    radius: 4 /* 数据点大小px */
                },
                color: N.Util.Theme_colors.darkGreen,
                data: aggregate_demand_succ_rate_bv,
                yAxis: 1,
                axisLabelY: '%',
                dashStyle: 'shortdot'
            }
        ],
        marginTop: 30,
        marginBottom: 0,
        itemWidth: 110,
        lenabled: true,
        lenabledAlign: 'center',
        lenabledVerticalAlign: '',
        layout: 'horizontal',
        lenabledWidth: 10,
        chartType: 'column',
        itemDistance: 0,
        itemMarginTop: -16,
        itemMarginBottom: -1
    })
    loading.hide()
}

